<!doctype html> 
<html lang="zh_CN">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="./css/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="./fonts/boostrapicons/bootstrap-icons.css">
    <title>移动</title>
    <style>
        .row>div{
            background-color: #ccc;
            border:1px solid grey;
            height:40px;
        }
    </style>
  </head>
  <body>
      <div class="container">
          <div class="row">
              <div class="col">1</div>
              <div class="col">2</div>
              <div class="col">3</div>
              <div class="col">4</div>
          </div>
          <div class="row">
              <div class="col">
                <button class="btn btn-danger btn-lg" id="change">切换</button>
              </div>
          </div>
      </div>
     
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="./js/plugins/bootstrap/jquery.slim.min.js" ></script>
    <script src="./js/plugins/bootstrap/popper.min.js"></script>
    <script src="./js/plugins/bootstrap/bootstrap.min.js"></script>
    <script>
      $(function(){
          $("#change").click(function(){
             $('.row').first().children().first().toggleClass("order-last");
             $('.row').first().children().last().toggleClass("order-first");
             
          });
      })
    </script>
  </body>
</html>